Transformation Rules Approximate Patterns and Queries 7.1 Complexity
نویسنده
چکیده
Theorem 7.1 (4.2) Let T be a set of transformation rules. The transformation testing problem is NP-complete for T with star-free rules, where does not appear on the rhs of atomic rules. Remark: Note that the reenement rule r 0 of Section 2 is not star-free, and thus the above theorem does not apply. Nevertheless, the transformation testing for it is in NP-TIME. (Each application of the rule r shortens the string, thus it can be applied at most jsj times). 2 As before, the problem is decidable for all atomic rules, even when they are not star-free. Theorem 7.2 (4.3) Transformation testing is in NP for all atomic transformation rules. We next reconsider the membership testing problem { testing whether s 2 e for a string s and an approximate expression e. In Section 5.1 we showed that the problem is in NP for star-free rules with bounded shrinkage. This shrinkage refers to the length of strings. To get the same complexity result for the extended language, we further require that the rules have bounded domain shrinkage. Intuitively, bounded domain shrinkage requires that the range of the constants appearing in the output of a rule be smaller than the range of the constants in the input string by at most a constant. Deenition 7.1 For a string s, let max(s) denote the highest constant in s, and min(s) the smallest one. We say that an atomic rule r has bounded domain shrinkage if there is a constant n, such that for all strings s; s 0 ; t, if s 0 2 (s r(t)) then max(s 0) max(s) ? n. and min(s 0) min(s) + n. The following theorem applies to discrete domains. Theorem 7.3 (5.2) The membership testing problem for the extended language over a discrete domain is NP-complete, for star-free transformation rules with length and domain shrinkage bounded by some constants n l and n d resp. Proof: (Sketch) The proof is similar to that of Theorem 5.2, and is based on the fact that all constants involved in the construction of a string s 2 e are from a nite domain, bounded below by min(s) ? jej n 0 d and above by max(s)+jejn 0 d. (Where n 0 d is the maximal domain shrinkage of all the rules in e.) 2 Recall that it is possible to analyze rules syntactically and decide if they have …
منابع مشابه
Extending the Qualitative Trajectory Calculus Based on the Concept of Accessibility of Moving Objects in the Paths
Qualitative spatial representation and reasoning are among the important capabilities in intelligent geospatial information system development. Although a large contribution to the study of moving objects has been attributed to the quantitative use and analysis of data, such calculations are ineffective when there is little inaccurate data on position and geometry or when explicitly explaining ...
متن کاملEfficient Datalog Queries with Time and Space Complexity Guarantees Efficient Datalog Queries with Time and Space Complexity Guarantees
of the Dissertation Efficient Datalog Queries with Time and Space Complexity Guarantees by Kazım Tuncay Tekle Doctor of Philosophy in Computer Science Stony Brook University 2010 Many complex analysis problems can be most clearly and easily specified as logic rules and queries, where rules specify how given facts can be combined to infer new facts, and queries select facts of interest to the an...
متن کاملDeveloping Reliable yet Flexible Software through If-Then Model Transformation Rules
Developing reliable yet flexible software is a hard problem. Although modeling methods enjoy a lot of advantages, the exclusive use of just one of them, in many cases, may not guarantee the development of reliable and flexible software. Formal modeling methods ensure reliability because they use a rigorous approach to software development. However, lack of knowledge and high cost practically fo...
متن کاملLearning Transformation Rules for Semantic Query Optimization: A Data-Driven Approach
Learning query transformation rules is vital for the success of semantic query optimization in domains where the user cannot provide a comprehensive set of integrity constraints. Finding these rules is a discovery task because of the lack of target. Previous approaches to learning query transformation rules have been based on analyzing past queries. We propose a new approach to learning query t...
متن کاملFinding Top-k Approximate Answers to Path Queries
We consider the problem of finding and ranking paths in semistructured data without necessarily knowing its full structure. The query language we adopt comprises conjunctions of regular path queries, allowing path variables to appear in the bodies and the heads of rules, so that paths can be returned to the user. We propose an approximate query matching semantics which adapts standard notions o...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995